package com.car.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.car.entity.GrabThe;
import com.car.mapper.GrabTheMapper;
import com.car.service.GrabTheService;
import com.car.vo.GrabTheVo;
@Service
public class GrabTheServiceImpl implements GrabTheService {
	@Autowired
	GrabTheMapper grabTheMapper;

	@Override
	public List<GrabThe> selectAll() {
		// TODO Auto-generated method stub
		return grabTheMapper.selectAll();
	}

	@Override
	public GrabThe selectAllBygrabId(Integer grabId) {
		// TODO Auto-generated method stub
		return grabTheMapper.selectAllBygrabId(grabId);
	}

	@Override
	public List<GrabTheVo> selectAllByCodeId(Integer coup) {
		// TODO Auto-generated method stub
		return grabTheMapper.selectAllByCodeId(coup);
	}

	@Override
	public int addGrab(GrabThe grab) {
		// TODO Auto-generated method stub
		return grabTheMapper.addGrab(grab);
	}

	@Override
	public int updateGrab(GrabThe grab) {
		// TODO Auto-generated method stub
		return grabTheMapper.updateGrab(grab);
	}

	@Override
	public GrabThe selecBygrabId(Integer grabId) {
		// TODO Auto-generated method stub
		return grabTheMapper.selecBygrabId(grabId);
	}

	@Override
	public int delGrab(Integer id) {
		// TODO Auto-generated method stub
		return grabTheMapper.delGrab(id);
	}

}
